﻿

@using (Html.Kaio().BeginForm(new jQueryAjaxOptions { HashPwd = true, Loading = true, Type = AjaxRequestDataType.Script },new {@id="_f"}))
{
    
    
    <div class="login-panel">
        @Html.AntiForgeryToken()
        <input type="hidden" value="@ViewBag.ReturnUrl" id="returnUrl" name="returnUrl" />
        <table>
            <tr>
                <td class="table-cell width30">
                    @Html.Raw(ForumContext.GetText(LanguageSection.LOGIN, "USER_NAME"))
                </td>
                <td class="table-cell">
                    @*<input id="_user" name="_user" class="input {validate:{required:true}}" type="text" />*@
                    @Html.TextBox("_user", "", new { @class = "input {validate:{required:true}}" })
                </td>
            </tr>
            <tr>
                <td class="table-cell">
                    @Html.Raw(ForumContext.GetText(LanguageSection.LOGIN, "PASSWORD"))
                </td>
                <td class="table-cell">
                    @Html.Password("_pwd", "", new { @class = "input {validate:{required:true}}", autocomplete = "off" })
                    @*<input id="_pwd" name="_pwd" class="input {validate:{required:true}}" type="password" autocomplete="off" />*@
                    @* @Html.PasswordFor(m => m.Password, new { @class = "input" })
                    @Html.ValidationMessageFor(m => m.Password)*@
                </td>
            </tr>
            <tr>
                <td class="table-cell">
                    &nbsp;
                </td>
                <td class="table-cell">
                    <input type="checkbox" id="_auto" name="_auto" /><label for="_auto">@ForumContext.GetText(LanguageSection.LOGIN, "REMEMBER_LOGIN")</label>
                </td>
            </tr>
            <tr>
                <td class="table-cell">
                    &nbsp;
                </td>
                <td class="table-cell">
                    @*<input type="button" value="@ForumContext.GetText(LanguageSection.LOGIN, "LOGIN")" class="button" onclick="$.MvcForum.ajaxSubmit('_login')" />*@
                    @Html.Link("javascript://", ForumContext.GetText(LanguageSection.LOGIN, "LOGIN"), new { onclick = "$('#_f').submit()", @class = "ui-button" })
                    
                </td>
            </tr>
            <tr>
                <td class="table-cell center" colspan="2">
                    @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.LOST_PWD), ForumContext.GetText(LanguageSection.LOGIN, "LOST_PWD"))
                    | @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.ACTIVE_REQUEST), ForumContext.GetText(LanguageSection.LOGIN, "REQUEST_ACTIVE_CODE"))
                </td>
            </tr>
        </table>
    </div>
}
